package com.liu.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {

    /**
     * 像容器注入队列
     * @return
     */
    @Bean
    public Queue queue(){
        return new Queue("hello");  //队列名称 hello
    }

}
